Skip to content

Fix tracked file paths for subdirectories#103

Open
klly14 wants to merge 1 commit intorubyatscale:mainfrom
klly14:codex/fix-tracked-files-subdirectory
Open

Fix tracked file paths for subdirectories#103
klly14 wants to merge 1 commit intorubyatscale:mainfrom
klly14:codex/fix-tracked-files-subdirectory

Conversation

@klly14
Copy link
Copy Markdown

@klly14 klly14 commented Apr 7, 2026

Summary

  • remove --full-name from git ls-files so tracked paths stay relative to the supplied base_path
  • add a regression test covering find_tracked_files when called from a subdirectory inside a git repo

Root cause

git ls-files --full-name always emits paths relative to the repository root. find_tracked_files then joined those repo-root-relative paths onto base_path, which doubled nested prefixes like /repo/backend/backend/... when the caller ran from a subdirectory.

Validation

  • cargo test tracked_files -- --nocapture
  • cargo test
  • cargo fmt --check

@github-project-automation github-project-automation bot moved this to Triage in Modularity Apr 7, 2026
@klly14 klly14 changed the title [codex] Fix tracked file paths for subdirectories Fix tracked file paths for subdirectories Apr 7, 2026
@klly14 klly14 marked this pull request as ready for review April 7, 2026 02:04
@klly14 klly14 requested a review from a team as a code owner April 7, 2026 02:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Triage

Development

Successfully merging this pull request may close these issues.

1 participant